import csv
import os
import sys

from src.init import project_dir


def read_csv_data():
    # 指定要读取的 CSV 文件路径
    csv_file_path=os.path.join(project_dir,'data_cal.csv')
    # csv_file_path = '../data_cal.csv'

    # 打开 CSV 文件并创建一个 CSV 文件读取器
    with open(csv_file_path, 'r', newline='') as csv_file:
        csv_reader = csv.reader(csv_file)
        next(csv_reader)
        # 逐行读取 CSV 文件内容
        List_data=[]
        for row in csv_reader:
            List_data.append((int(row[0]),int(row[1]),int(row[2])))
            # 打印每一行的数据
        print(List_data)
        return List_data

if __name__ == '__main__':
    read_csv_data()